import type { IList, IResult } from "@/types/common";
import { getAxios, commonAxiosJson } from "@/utils/request.js";
const url = "/back/douyin-refund-order";
/* 获取抖音退款单列表信息 */
export const getDouyinRefundOrderInfo = <T, D>(params?: D): Promise<IResult<IList<T>>> => {
  return getAxios<IList<T>, D>(url, params);
};
/* 同意抖音退款 信息 */
export const updateDouyinRefundOrderAgreeRefundInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return commonAxiosJson<T, D>(url + "/agree-refund", params, "PUT");
};
/* 拒绝抖音退款 信息 */
export const updateDouyinRefundOrderDenyRefundInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return commonAxiosJson<T, D>(url + "/deny-refund", params, "PUT");
};
